package com.yun.service;


import com.yun.dao.UserMapper;
import com.yun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserService implements UserMapper {

    @Autowired
    UserMapper userMapper;

    @Override
    public User queryByUserName(String userName) {
        return userMapper.queryByUserName(userName);
    }

    @Override
    public int register(Map<String, Object> map) {
        return userMapper.register(map);
    }

    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }
}
